
package jaux.tank.dao.system;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import jaux.tank.bean.entity.system.Cfg;

//@CacheConfig(cacheNames = "sysCfg")
//@Cacheable
public interface CfgRepository extends PagingAndSortingRepository<Cfg,String>
        ,JpaRepository<Cfg,String>,JpaSpecificationExecutor<Cfg> {

    Cfg findByCfgName(String cfgName);
    

	int countByParentCfgId(String cfgId);

}
